﻿using deviceManage.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace deviceManage.VO
{
    public class TreeNode
    {
        public TreeNode()
        {
            checkArr = new TreeNodeCheckState();
        }

        public TreeNode(string id,string title,string parent,bool check)
        {
            this.id = id;
            this.title = title;
            this.parentId = parent;
            this.checkArr = new TreeNodeCheckState("0", check ? "1" : "0");
            this.children = new List<TreeNode>();
        }

        public string id { get; set; }
        public string title { get; set; }
        public string parentId { get; set; }
        public TreeNodeCheckState checkArr { get; set; }
        public List<TreeNode> children { get; set; }
    }
}
